<template>
   <div>
      <Header></Header>
      <router-view></router-view>
     
      <!-- 在home和search下显示 -->
    <!-- <Footer v-show="$route.path=='/home'||$route.path=='/search'"></Footer> -->
      <!-- 根据route身上的mate进行判断 -->
      <Footer v-show="$route.meta.showFooter"></Footer>
   </div>
</template>

<script>
import Header from './components/Header';
import Footer from './components/Footer';


export default {
      name:'App',
  components:{
    Header,Footer
  },
  mounted() {
    // 获取商品分类的三级列表的数据
    this.$store.dispatch("categoryList");
  },
}
</script>

<style>

</style>